//
//  tuiJIanZuoPinCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/27.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "tuiJIanZuoPinCell.h"

@implementation tuiJIanZuoPinCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.nickName_lab.font = self.sex_lab.font = self.zuoPin_lab.font = self.issueTime_lab.font = self.look_lab.font = self.like_lab.font = AutoLabFont2;
}

-(void)setModel:(TuiJianModel *)model{
    _model = model;
    [_icon_img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.avatarUrl]] placeholderImage:DefaultIcon];
    _nickName_lab.text = [NSString stringWithFormat:@"昵称：%@",model.userName];
    if ([model.gender intValue] == 1) {
        _sex_lab.text = [NSString stringWithFormat:@"性别：男"];
    }else if ([model.gender intValue] == 2){
        _sex_lab.text = [NSString stringWithFormat:@"性别：女"];
    }else{
        _sex_lab.text = [NSString stringWithFormat:@"性别：未知"];
    }
    _zuoPin_lab.text = [NSString stringWithFormat:@"课程所属科目：%@",model.name];
    _issueTime_lab.text = [NSString stringWithFormat:@"课程时长：%@",model.gmtCreate];
    _like_lab.text = [NSString stringWithFormat:@"%@",model.likes];
//    _look_lab.text = [NSString stringWithFormat:@"%@",model.coursePraise];

}

@end
